<?php /* Smarty version Smarty-3.1.18, created on 2015-07-08 23:11:27
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Wxmenu\wxmenu.html" */ ?>
<?php /*%%SmartyHeaderCode:13324559ceab7855791-57149379%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '28513506fb327edeca9212e0d4507301c62b005e' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Wxmenu\\wxmenu.html',
      1 => 1436368174,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13324559ceab7855791-57149379',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_559ceab7a12d08_64257645',
  'variables' => 
  array (
    '_C' => 0,
    'wxmenu' => 0,
    'cat_list' => 0,
    'list' => 0,
    'rule_list' => 0,
    '_L' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_559ceab7a12d08_64257645')) {function content_559ceab7a12d08_64257645($_smarty_tpl) {?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css" />
		<style type="text/css">
			.am-slider-default{ box-shadow: none;}
			
		</style>
	</head>

	<body>
		<div class="am-g">
         <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">标题:</label>
						<div class="am-u-sm-9">
							<input type="text" name="name" value="<?php echo $_smarty_tpl->tpl_vars['wxmenu']->value['name'];?>
" placeholder="非空">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">父菜单:</label>
						<div class="am-u-sm-9">
							<select name="parent_id">
								<option value="0">请选择父菜单</option>
								<?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cat_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
?>    
								<option <?php if ($_smarty_tpl->tpl_vars['list']->value['id']==$_smarty_tpl->tpl_vars['wxmenu']->value['parent_id']) {?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
</option>
								<?php } ?>
							</select>
							<input type="hidden" name="old_pid" id="old_pid" value="<?php echo $_smarty_tpl->tpl_vars['wxmenu']->value['parent_id'];?>
" />
						</div>
					</div>
					
					
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">类型:</label>
						<div data-am-button class="am-btn-group am-u-sm-9 hy-js-menutab">
									<label data-target="#link1" class="hy-js-menubtn am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']) {?><?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==0) {?> am-active <?php } else { ?><?php }?><?php } else { ?> am-active <?php }?> ">
										<input   type="radio" <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']) {?><?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==0) {?> checked="checked" <?php } else { ?><?php }?><?php } else { ?> checked="checked" <?php }?>  name="type" value="0" id="option1">关联信息
									</label>
									<label data-target="#link2" class="hy-js-menubtn am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==1) {?> am-active <?php } else { ?><?php }?> ">
										<input   type="radio" name="type" <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==1) {?> checked="checked" <?php } else { ?><?php }?>  value="1" id="option2"> 链接
									</label>
								
						</div>
					</div>
					<div id="link2" <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==1) {?>style='display: block;'<?php } else { ?><?php }?> class="am-form-group hy-js-menupanel hy-hide">
						<label for="user-name" class="am-u-sm-3 am-form-label">链接:</label>
						<div class="am-u-sm-9">
							<input type="text" name="url" <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['url']) {?> value="<?php echo $_smarty_tpl->tpl_vars['wxmenu']->value['url'];?>
" <?php } else { ?>value="http://"<?php }?> placeholder="">
						</div>
					</div>
					<div id="link1"  <?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']) {?><?php if ($_smarty_tpl->tpl_vars['wxmenu']->value['type']==0) {?> style='display: block;' <?php } else { ?><?php }?><?php } else { ?> style='display: block;' <?php }?> class="am-form-group  hy-js-menupanel hy-hide">
						<label for="user-name" class="am-u-sm-3 am-form-label">关联信息:</label>
						<div class="am-u-sm-9">
							<select name="rule">
								<?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rule_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
?>    
								<option <?php if ($_smarty_tpl->tpl_vars['list']->value['id']==$_smarty_tpl->tpl_vars['wxmenu']->value['rule']) {?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
</option>
								<?php } ?>
							</select>
						</div>
					</div>
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id"  value="<?php echo $_smarty_tpl->tpl_vars['wxmenu']->value['id'];?>
" />
							<button type="button" class="am-btn am-btn-primary hy-js-submit"><?php echo $_smarty_tpl->tpl_vars['_L']->value['SAVE'];?>
</button>
						</div>
					</div>
				</form>
			</div>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<script type="text/javascript">
			 hy_submit('index.php?g=admin&m=wxmenu&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		</script>
	</body>
</html><?php }} ?>
